<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style type="text/css">
	
		
div {
	width: 100%;
	height: 100%;
	text-align: center;
}
		</style>
 
  <body >
    <div>
   		<div align="center"> <img src="img/loginbg.jpg" style="width: 100%;height: 100%"></div>
   		<div style="position:absolute; top:0px;left:0px;" >
   		
   		<c:if test="${sessionScope.user.uname==null}">
   		<br/>
   		<h2>用户登录</h2>
   		您还没有登录！
   		<br/>
   		<br/>
		<input type="button" value="登录" onclick="window.open('customer/login.jsp','left1')" />
		&nbsp;&nbsp;
		<input type="button" value="注册" onclick="window.open('customer/agreement.jsp','middle')"/>   
		</c:if>
   		<c:if test="${sessionScope.user.uname!=null}">
   		<h2 style="margin-top: 15;">欢迎您</h2>
   		<br/>
   		${sessionScope.user.uname}	
   		<a href="order/shopcar.jsp"  target="_top">查看购物车</a>	
   		<br/><br/>
		
		</c:if>

		</div>
   		
  
   </div>
  </body>

